package com.bw.service;

import com.bw.bean.Movie;
import com.bw.dao.MovieDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    MovieDao dao;
    @Override
    public List<Movie> list() {
        return dao.list();
    }

    @Override
    public List<Movie> likeList(String name) {
        return dao.likeList(name);
    }

    @Override
    public List<Movie> autList(String aut) {
        return dao.atuList(aut);
    }

    @Override
    public List<Movie> areaList(String start, String end) {
        return dao.areaList(start,end);
    }

    @Override
    public int del(int id) {
        return dao.del(id);
    }
}
